﻿@model IEnumerable<SuCasa.Infrastructure.StudentAssignment>

@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

		
		<table class="table table-striped table-bordered">
			<thead>
				<tr>
					
					<th>
						Name
					</th>
					<th>
						Notes
					</th>
					<th>
						AssignmentDate
					</th>
                    <th>
                        CourseId
                    </th>
                    <th>
						Complete
					</th>
				</tr>
			</thead>
			<tbody>

@foreach (var item in Model) {
				<tr>
					<td>
						@item.Assignment.Name
					</td>
					<td>
						@item.Assignment.Notes
					</td>
					<td>
						@String.Format("{0:g}", item.Assignment.AssignmentDate)
					</td>
                    <td>
                        @item.Assignment.CourseId
                    </td>
                    <td>
                        @item.Complete
                    </td>
			</tr>
}
		</tbody>
	</table>

